package com.molyfun.parents.im.model;

import com.google.gson.JsonElement;

/**
 * Created by ligang on 2017/9/25 0025.
 */

public class BaseMessageEntity {

    private JsonElement data;

    private String eventtype;

    private String opertype;

    //用于区分不同群聊和单聊
    private String conversationid;

    private ImUser user;

    private DetailData detaildata;

    public JsonElement getData() {
        return data;
    }

    public void setData(JsonElement data) {
        this.data = data;
    }

    public String getEventtype() {
        return eventtype;
    }

    public void setEventtype(String eventtype) {
        this.eventtype = eventtype;
    }

    public String getOpertype() {
        return opertype;
    }

    public void setOpertype(String opertype) {
        this.opertype = opertype;
    }

    public ImUser getUser() {
        return user;
    }

    public void setUser(ImUser user) {
        this.user = user;
    }

    public String getConversationid() {
        return conversationid;
    }

    public void setConversationid(String conversationid) {
        this.conversationid = conversationid;
    }

    public DetailData getDetaildata() {
        return detaildata;
    }

    public void setDetaildata(DetailData detaildata) {
        this.detaildata = detaildata;
    }

    /**
     * 用户每条消息添加小组信息
     */
    public class DetailData{

        /**
         * count : 7
         * id : 4028b88163cd841b0163cda471d6002f
         * name : 新的测试小组
         * type : group
         * url : http://media.molyfun.com/mf/group/ic_20180605-095131.jpg?sign=903949c8783e2fe7b34a94643b1941ed&t=5b1962fc
         */

        private int count;
        private String id;
        private String name;
        private String type;
        private String url;
        private String status;
        private int rule; //0 都没有，1 评估有 2 测评有 3评估和测评都有

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public int getRule() {
            return rule;
        }

        public void setRule(int rule) {
            this.rule = rule;
        }
    }

}
